package com.zlkj.pro.modular.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.time.LocalDate;
import java.util.Date;

/**
 * 区域信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "area")
public class AreaEntity extends Model<AreaEntity> {

    /*@TableId(value = "id", type = IdType.AUTO)*/
    @TableId(value = "id")
    private String id;

    @TableField("parent_id")
    private String parentId;

    @TableField("name")
    private String name;

    @TableField("level_type")
    private String levelType;

    @TableField("parent_path")
    private String parentPath;

    @TableField("province")
    private String province;

    @TableField("city")
    private String city;

    @TableField("district")
    private String district;

}
